package day0428.homework.factor;/*
 * @创建者：黄苟苟
 * @创建时间：2021/4/28   23:31
 * @Description描述
 **/

public class MainTest {
    public static void main(String[] args) {
        ComputerFactory computerFactory=new ComputerFactory();//电脑工厂创建对象
        PhoneFactory phoneFactory=new PhoneFactory();//手机工厂创建对象
        PrinterFactory printerFactory=new PrinterFactory();//打印机工厂创建对象
        Computer computer=computerFactory.creatEquipment();//电脑厂调用方法生产电脑
        Phone phone=phoneFactory.creatEquipment();//手机厂调用方法生产手机
        Printer printer=printerFactory.creatEquipment();//
}}
